https://www.allaboutcircuits.com/worksheets/cmos-logic-gates/